package com.sugon.entity;


/**
 * 消息枚举类
 *
 * @author YuXD
 * @version v1.0
 * @since 2020-08-20 16:27
 */
public enum Ar {
    /**失败*/
    FAIL(0, "\u5931\u8D25"),
    /**成功*/
    SUCCESS(1, "\u6210\u529F"),
    /**未认证，TOKEN未携带或者非法TOKEN*/
    UNAUTHORIZED(401, "\u672A\u6388\u6743"),
    /** 服务内部错误 */
    DATAERROR(500, "\u670d\u52a1\u5668\u5185\u90e8\u9519\u8bef"),
    /**已失效*/
    INVALID(600, "\u5df2\u5931\u6548");

    int code;

    private String msg;

    Ar(int code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getMsg() {
        return msg;
    }

    public int getCode() {
        return code;
    }

}
